import tensorflow as tf

# 注：本书全部代码在tensorflow 2.1版本测试通过
# tf.print("tensorflow version:", tf.__version__)
#
# a = tf.constant("hello")
# b = tf.constant("tensorflow2")
# c = tf.strings.join([a, b], " ")
# tf.print(c)
#
# t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]])
# print(t.numpy())

# t1 = tf.constant(-1.0, shape=[2, 3])
# tf.print(t1)

t2 = tf.constant([1, 2, 3, 4, 5, 6], shape=(2, 3))
print(t2)
